<?php
/**
 * @Author: anchen
 * @Date:   2017-05-25 20:20:27
 * @Last Modified by:   anchen
 * @Last Modified time: 2017-09-14 16:19:13
 */
//拒绝非法访问
defined('ACCESS_KEY9296')||exit('denied');

class AccountModel extends Model{
    protected $table = 'account';
    //用户注册方法
    public function reg($arr){
        return $this->db->autoExecute($this->table,$arr,'insert');
    }

    public function select(){
        return $this->db->getAll('select * from test');
    }

    public function login($arr){
        return $this->db->getOne($arr);
    }
}